package com.woniuxy.credit_loans.collection_zhang.service.Impl;

import com.woniuxy.credit_loans.collection_zhang.service.CheckedService;
import com.woniuxy.credit_loans.collection_zhang.vo.CheckVo;
import com.woniuxy.credit_loans.entity.Checked;
import com.woniuxy.credit_loans.mapper.CheckedMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CheckedServiceImpl implements CheckedService {

    @Autowired
    private CheckedMapper checkedMapper;
    @Override
    public List<CheckVo> selectAll(String input) {
         List<CheckVo> checkeds = checkedMapper.selectAll(input);
        return checkeds;
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        checkedMapper.deleteByPrimaryKey(id);
        return 0;
    }

    @Override
    public int insertSelective(Checked record) {
        checkedMapper.insertSelective(record);
        return 0;
    }

    @Override
    public Checked selectByPrimaryKey(Long id) {
         Checked checked = checkedMapper.selectByPrimaryKey(id);
        return checked;
    }

    @Override
    public int updateByPrimaryKeySelective(Checked record) {
        checkedMapper.updateByPrimaryKeySelective(record);
        return 0;
    }
}
